//
//  MovieDetialViewController.m
//  UI_stroy bored版
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 mjh. All rights reserved.
//

#import "MovieDetialViewController.h"

#import "UIImageView+WebCache.h"

@interface MovieDetialViewController ()
@property (nonatomic, strong)MovieDetailModel *movieDetailModel;

@end

@implementation MovieDetialViewController

-(instancetype)initWithMovieDetailModel:(MovieDetailModel *)model {
    
    self = [super init];
    
    if (self) {
        
        self.movieDetailModel = model;
        
        
    }
    
    return self;
}






- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.titleLabel.text = self.movieDetailModel.title;
    
    
    [self.movieImageView sd_setImageWithURL:[NSURL URLWithString:self.movieDetailModel.imageURL.large]];
    
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
